package educar.models;

public class Session {
  private static User currentUser = null;
  private static Session session;
  
  /**
   * 	
   * @return session
   */
  public synchronized static Session getSession(){
    if (session == null)
	  session = new Session();
	  return session;
  }
  
 /**
  * 
  */
  public Session() {
    Session.setCurrentUser(null);
  }
  /**
   * 
   * @return currentUser
   */
  public static User getCurrentUser() {
    return currentUser;
  }
  /**
   * 
   * @param currentUser
   */
  public static void setCurrentUser(User currentUser) {
    Session.currentUser = currentUser;
  }
}
